import request from '@/utils/request.js'

export function getGenealogyMemberList(data){
	return request({
		url:'/record/genealogy/member/list',
		method:'get',
		data:data
	})
}

export function getGenealogyMemberTree(genealogyId){
	return request({
		url:'/record/genealogy/member/tree/' + genealogyId,
		method:'get',
	})
}

export function getGenealogyMemberListToday(data){
	return request({
		url:'/record/genealogy/member/list/today',
		method:'get',
		data:data
	})
}

export function addGenealogyMember(data){
	return request({
		url:'/record/genealogy/member',
		method:'post',
		data:data
	})
}

export function editGenealogyMember(data){
	return request({
		url:'/record/genealogy/member',
		method:'put',
		data:data
	})
}

export function deleteGenealogyMember(data){
	return request({
		url:'/record/genealogy/member/'+data,
		method:'delete'
	})
}

export function getGenealogyMember(data){
	return request({
		url:'/record/genealogy/member/'+data,
		method:'get'
	})
}